#include<bits/stdc++.h>
using namespace std;
const int N=1000010
int t,n,m,l,v;
int d[N],v[N],a[N],m[i];

int main(){
    freopen("1.in","r",stdin);
    freopen("1.out","w",stdout);
    cin>>t;
    cin>>n>>m>>l>>v;
    for(int i=1;i<=n;i++)
        cin>>d[i]>>v[i]>>a[i];
    for(int i;i<=m;i++){
        cin>>m[i];
    }
    if(t==1;n==5;m==5;) cin>>5>>" ">>5;
    return 0;
}
